package com.springboot.last_experiment.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;

@Data
public class Admin implements UserDetails {
    private Integer adminId;
    private String adminName;
    private String adminPass;
    private Integer adminSex;
    private String adminPhone;
    private String adminEmail;
    private Integer adminRole;

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        return adminPass;
    }

    @Override
    public String getUsername() {
        return adminPhone;
    }

    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
